package com.oocl.factory;

import com.oocl.service.ClientService;
import com.oocl.service.FoodService;
import com.oocl.service.MerchantService;
import com.oocl.service.impl.ClientServiceImpl;
import com.oocl.service.impl.FoodServiceImpl;
import com.oocl.service.impl.MerchantServiceImpl;

/**
 * @description: 生成 service 的工厂
 * @author  XIEMI2
 * @date Aug 2, 2017 10:32:34 PM
 * @version 1.0
 */
public class ServiceFactory {
	
	private static FoodService foodService;;
	private static MerchantService merchantService;
	private static ClientService clientService;
	
	public static FoodService getFoodService() {
		foodService = new FoodServiceImpl();
		return foodService;
	}
	public static MerchantService getMerchantService() {
		merchantService = new MerchantServiceImpl();
		return merchantService;
	}
	
	public static ClientService getClientService() {
		clientService = new ClientServiceImpl();
		return clientService;
	}
	
	
}


